<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>起始页</title>
  <style>
    :root { color-scheme: light dark; }
    body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Microsoft YaHei", sans-serif; margin: 0; display: grid; place-items: center; min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, rgba(79,70,229,.22), transparent), radial-gradient(1000px 500px at 110% 10%, rgba(34,211,238,.18), transparent); }
    .wrap { width: min(820px, 92vw); text-align: center; backdrop-filter: blur(6px); }
    h1 { font-weight: 700; letter-spacing: .4px; font-size: 36px; margin-bottom: 6px; }
    p.sub { color: #9aa0a6; margin-top: 0; }
    form { display: flex; gap: 10px; margin-top: 24px; }
    input[type="text"] { flex: 1; padding: 14px 16px; border-radius: 14px; border: 1px solid #9aa0a633; font-size: 16px; background: #ffffffee; }
    @media (prefers-color-scheme: dark) { input[type="text"] { background: #0b0e14ee; color: #e5e7eb; } }
    button { padding: 14px 18px; border-radius: 14px; border: 1px solid #9aa0a633; background: linear-gradient(135deg,#4f46e5,#22d3ee); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(79,70,229,.35); }
    .grid { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
    .tile { border: 1px solid #9aa0a633; border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; background: #ffffffaa; transition: transform .12s ease, background .2s ease, box-shadow .2s ease; }
    @media (prefers-color-scheme: dark) { .tile { background: #0b0e14aa; } }
    .tile:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
  </style>
</head>
<body>
  <div class="wrap">
    <h1>欢迎使用你的浏览器</h1>
    <p class="sub">快速开始：搜索或点击下方常用网站</p>
    <form method="GET" action="https://www.bing.com/search">
      <input type="text" name="q" placeholder="搜索或输入网址" autofocus />
      <button type="submit">搜索</button>
    </form>
    <div class="grid">
      <a class="tile" href="https://www.python.org">Python</a>
      <a class="tile" href="https://www.qt.io/">Qt</a>
      <a class="tile" href="https://www.github.com">GitHub</a>
      <a class="tile" href="https://news.ycombinator.com">Hacker News</a>
    </div>
  </div>
  <script>
    // focus input on load
    const inp = document.querySelector('input[name="q"]');
    if (inp) setTimeout(()=>inp.focus(), 50);
  </script>
</body>
</html>
